package com.gzcc.common;

/**
 * @author: Mr.Zhong
 * @create: 2018-06-20 21:59
 * @description: 通用回调接口
 **/
public class ResponseCode<T> {

    private int code;
    private String message;
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public ResponseCode(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResponseCode(int code, T data) {
        this.code = code;
        this.data = data;
    }


}
